<?php
include 'common.php';
$rtkurl='http://'.$conf['rtkserver'];

while(1){
    $data = curlGet($rtkurl);
    if($data){
        $arrdata = json_decode($data,true);
        if($arrdata['status']=='ok'){
            echo date('Y-m-d H:i:s')." rtksync ok\n\r";

            $redisc->setex('rtkdata' ,50 ,$arrdata['data']['data']);
        }
    }
    sleep(1);
}
